const dotenv = require('dotenv');
dotenv.config({
  path: './.env'
});
const env = process.env;
module.exports = function (w) {

  return {
    files: [
      'src/**/*.ts',
      './public.key',
      './private.key'
    ],

    tests: [
      'test/**/*.spec.ts'
    ],

    env: {
      type: 'node',
      params: {
        env: `DB_ENTITIES_DIR=*.entity.js`
      }
    },
    
    testFramework: 'mocha',
    trace: true,
    runMode: 'onsave',

    workers: {
      initial: 6,
      regular: 2,
      restart: true
    }
  };
};